<!--<div class="row">
  <div class="col-sm-6">-->
    <div class="tabbable tabs-left">
      <ul class="nav nav-tabs" id="myTab3">
        <li>
          <a data-toggle="tab" href="#profile3">
            <i class="blue icon-user bigger-110"></i>
            基本信息
          </a>
        </li>

        <li class="active">
          <a data-toggle="tab" href="#blog3">
            <i class="pink icon-dashboard bigger-110"></i>
            拥有博客
          </a>
        </li>

        <li>
          <a data-toggle="tab" href="#dropdown13">
            <i class="icon-rocket"></i>
            交互记录
          </a>
        </li>
        <li>
          <a data-toggle="tab" href="#permission4">
            <i class="icon-rocket"></i>
            账户权限
          </a>
        </li>
      </ul>

      <div class="tab-content">
        <div id="blog3" class="tab-pane in active">
          <table class="table">
            <thead>
            <tr>
              <td>ID</td>
              <td>标题</td>
              <td>创建时间</td>
              <td>更新时间</td>
            </tr>
            </thead>
            <tbody>
            <% @posts.each do |blog| %>
                <tr>
                  <td><%= blog.id %></td>
                  <td><a href="<%= post_path(blog)%>"><%= blog.title %></a></td>
                  <td><%= blog.created_at %></td>
                  <td><%= blog.updated_at %></td>
                </tr>
            <% end %>
            </tbody>
          </table>
        </div>

        <div id="profile3" class="tab-pane">
          <%= render partial: "manager/users_bm/query_users/show/layout1/profile" %>
        </div>

        <div id="dropdown13" class="tab-pane">
          <table class="table">
            <thead>
            <tr>

              <td>博客总数</td>
              <td>注册时间</td>
              <td>更新时间</td>

              <td>管理员吗？</td>
              <td>当前登录时间</td>
              <td>登录IP</td>
              <td>最后登录时间</td>
              <td>最后登录IP</td>
              <td>登录次数</td>
            </tr>
            </thead>
            <tbody>
            <% user= @user%>
                <tr>
                  <td><a href="#"><%= user.posts_count||=0 %>条</a></td>
                  <td><%= user.created_at %></td>
                  <td><%= user.updated_at %></td>
                  <td><%= user.admin? ? '是' : '不是' %></td>
                  <td><%= user.current_sign_in_at %></td>
                  <td><%= user.current_sign_in_ip %></td>
                  <td><%= user.last_sign_in_at %></td>
                  <td><%= user.last_sign_in_ip %></td>
                  <td><a href="#"><%= user.sign_in_count %></a></td>
                </tr>

            </tbody>
          </table>
        </div>

        <div id="permission4" class="tab-pane">
          <table class="table">
            <thead>
            <tr>
              <td>ID</td>
              <td>权限(动作)</td>
              <td>中文名</td>
              <td>资源</td>
              <td>资源ID</td>
              <td>授权时间</td>
              <td>授权账户</td>
            </tr>
            </thead>
            <tbody>
            <% @user.permissions.each do |user_permission|%>
            <tr>
              <td><%= user_permission.id %></td>
              <td><a href="#" title="查询具有此动作的用户与资源"><%= user_permission.permission_action.action_name %></a></td>
              <td><%= user_permission.name %></td>
              <td><a href="#" title="查询此资源的所有动作"><%= user_permission.subject_class %></a></td>
              <td><%= user_permission.subject_id %></td>
            </tr>
            <% end %>
            </tbody>
          </table>
        </div>
      </div>
    </div>
  <!--</div>&lt;!&ndash; /span &ndash;&gt;
</div>-->